package com.example.xyxwebbackend001.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.ibatis.type.JdbcType;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_comments")
public class TComment {
    @TableId(type = IdType.AUTO)
    private Integer tCommentId;
    private Integer tPostId;
    private Integer userId;
    @TableField(value = "content", jdbcType = JdbcType.LONGVARCHAR)
    private String content;
    private Integer isDeleted;
    private LocalDateTime tCreatedAt;
    private LocalDateTime updatedAt;
}
